<?php
namespace App\HttpController\Admin;

use App\Common\Controller\Common;
use App\Utility\VerifyCode\HonrayVerify;
use EasySwoole\Config;

class Verify extends Common
{
    public function GETIndex()
    {
        $instance = Config::getInstance();
        $captcha = new HonrayVerify($instance->getConf('captcha'));
        $this -> response()->withHeader('Content-type','image/png;charset=utf-8');
        $this -> response()->write($captcha->entry());
    }
}
